{% extends 'admin/index.html' %}

{% block title %} {{title}} | {{site.name}} | Pantoto {% endblock %}

{% block heading %} <img src='/static/base/images/{{model}}.png' alt='{{title}}' class='mid_align' /> {{title}} {% endblock %}

{% block subcontent %}
<br class="clear" />
<div class="onecolumn">
       <div class="header">
            <span>{{title}}</span>
       </div>
        <br class="clear"/>
        <div class="content">
        {% if pagelets %}
            <table id="list_table" class="data" width="100%" cellpadding="0" cellspacing="0">
                <thead>
                <tr>
                    {% for header in headers %}
                    <th >{{header}}</th>
                    {% endfor %}
                </tr>
                </thead>
                <tbody>

                 {% for row in pagelets %} 
                    <tr>
                    {% for pagelet in row %}
                    <td> {{pagelet}} </td> 
                     {% endfor %}
                     </tr>
                {% endfor %}
                </tbody>
            </table>
            {% else %}
               <br class="clear"/>
                <div class="alert_info">
                    <p>
                        <img src="/static/base/images/icon_info.png" alt="info" class="mid_align"/>
                        No {{model}} found.
                    </p>
                </div>
            {% endif %}
        </div>
</div>

{% endblock %}
